<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>关闭自动开奖</title>
<link href="/public/admin/css/H-ui.css" rel="stylesheet" type="text/css" />
<link href="/public/admin/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="/public/admin/font/font-awesome.min.css"/>
</head>
<body>
   <table border=1 width='80%' class="tables">
    <tr>
        <th>#</th>
        <th>期号</th>
        <th>开奖时间</th>
        <th>操作</th>
    </tr>
    <?php foreach ($arr as $k=>$v):?>
        <tr>
            <td><?php echo $v['ID'];?></td>
            <td><?php echo $v['issue'];?></td>
            <td><?php echo date('Y-m-d H:i:s',$v['oktime']);?></td>
            <td>
                <?php if($v['isauto']!=1):?>
                    <a href="/?G=admin/openshand&i=<?php echo $v['ID']; ?>&t=1" onclick="return confirm('确定开启么，系统自动开奖！');" class="btn btn-success">开启</a>
                <?php else:?>
                    <a href="/?G=admin/openshand&i=<?php echo $v['ID']; ?>&t=2" onclick="return confirm('确定关闭么，关闭则系统不自动开奖！请及时手动开奖！');" class="btn btn-danger">关闭</a>
                <?php endif;?>
            
            </td>

        </tr>
    <?php endforeach;?>
   </table>
   <style>
    .tables{width: 80%;margin: 30px auto;}
    .tables td{height: 50px;text-align: center;}
.tables th{height: 50px;text-align: center;}
   </style>
</body>
</html>